package com.jiayang.base.equipment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiayang.base.equipment.domain.dto.EquipmentFindDTO;
import com.jiayang.base.equipment.domain.entity.StaEquipment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 设备表 Mapper 接口
 * </p>
 *
 * @author OuyangChenglong
 * @since 2021-09-18
 */
public interface StaEquipmentMapper extends BaseMapper<StaEquipment> {

    List<EquipmentFindDTO> getEquipmentByStationId(String id);

    List<StaEquipment> getAllEquipmentByUserId(Long uid);

    List<StaEquipment> getEquipmentEntityByStationId(String sid);

    List<StaEquipment> getEquipmentByNameAndState(@Param("sid")String id, @Param("name")String name, @Param("state")String state);

    String getEquipmentImageById(String id);
}
